{#
    Simple aggregator list with current entry detection
#}

{% if items %}
    <div class="entries">
        <ul>
            {% for type,item in items %}
                <li>
                    {% if item.images.count>0 %}
                        {% set image=images.0 %}
                        <img src="{{ image.forGallery.url }}"
                             alt="{{ image.name }}"
                             title="{{ image.name }}"
                             style="width:{{ image.forgallery.width }}px;height:{{ image.forgallery.height }}px" />
                    {% endif %}

                    <a href="{{ item.url }}">{{ item.name }}</a>
                </li>
            {% endfor %}
        </ul>
    </div>
{% endif %}